package com.lucas.service;

import com.lucas.fallback.CodeFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "lagou-server-code")
public interface CodeService {

    @RequestMapping("/codeTest/hello")
     String codeFeignTest();

    @RequestMapping("/validateCode/{email}/{code}")
     Integer validateCode(@PathVariable String email, @PathVariable String code);


}
